//
//  SETableFooterView.m
//  kuaiyi
//
//  Created by vn on 16/7/6.
//  Copyright © 2016年 Alphts. All rights reserved.
//

#import "SETableFooterView.h"

@interface SETableFooterView()


@property(nonatomic,strong)UILabel * qqLabel;

@property(nonatomic,strong)UILabel * versionLabel;

@end



@implementation SETableFooterView


- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        
        
        [self setUpUI];
        
    }
    
    return self;
    
}

- (void)layoutSubviews{
    
    [super layoutSubviews];
    
    
    [self.qqLabel mas_makeConstraints:^(MASConstraintMaker *make) {
       
       
        make.centerX.equalTo(self.centerX);
        make.bottom.equalTo(SCREEN_HEIGHT).offset(-100);
        
    }];
    
    [self.versionLabel mas_makeConstraints:^(MASConstraintMaker *make) {
       
        
        make.centerX.equalTo(self.qqLabel.centerX);
        make.bottom.equalTo(SCREEN_HEIGHT).offset(-60);
        
    }];
    
}

- (void)setUpUI{
    
    self.qqLabel = [[UILabel alloc]init];
    self.qqLabel.text = @"用户交流群: 4638375473";
    self.qqLabel.font = [UIFont systemFontOfSize:15];
    self.qqLabel.textColor = [UIColor colorWithRed:0.4 green:0.8 blue:1.0 alpha:1.0];
    [self.qqLabel sizeToFit];
    [self addSubview:_qqLabel];
    
    self.versionLabel = [[UILabel alloc]init];
    self.versionLabel.text = @"version: 1.4.0";
    self.versionLabel.textColor = [UIColor colorWithRed:0.4 green:0.8 blue:1.0 alpha:1.0];
    self.versionLabel.font = [UIFont systemFontOfSize:14];
    [self.versionLabel sizeToFit];
    [self addSubview:_versionLabel];
    
    
}

@end
